/*
* @(#)DocumentProperties.java
*
* Copyright (c) 2003 DCIVision Ltd
* All rights reserved.
*
* This software is the confidential and proprietary information of DCIVision
* Ltd ("Confidential Information").  You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the license
* agreement you entered into with DCIVision Ltd.
*/
package com.dcivision.dms.core;

import java.util.Hashtable;

/**
 * <p>Class Name:       DocumentProperties.java    </p>
 * <p>Description:      The class consists of the default's properties of a docuement have.</p>
 * @author              Zoe Shum
 * @company             DCIVision Limited
 * @creation date       01/08/2003
 * @version             $Revision: 1.2 $
 */
public class DocumentProperties {

  public static final String REVISION = "$Revision: 1.2 $";

  private Hashtable properties;

  public DocumentProperties() {
    properties = new Hashtable();
  }

  public void setProperty(String name, Object property) {
    properties.put(name, property);
  }

  public Object getProperty(String name) {
    return properties.get(name);
  }

  public void remove(String name) {
    properties.remove(name);
  }

  public void clear() {
    properties.clear();
  }

  public int size() {
    return properties.size();
  }
}